package com.violet.uaa.server.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
* @Author: wqf
* @Date: 2024/08/31
* @Description: 菜单权限关联关系表
*/
@Schema(description="菜单权限关联关系表")
@Data
@TableName(value = "r_menu_permission")
public class MenuPermission {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description="主键id")
    private Long id;

    /**
     * 菜单id
     */
    @TableField(value = "menu_id")
    @Schema(description="菜单id")
    private Integer menuId;

    /**
     * 权限id
     */
    @TableField(value = "permission_id")
    @Schema(description="权限id")
    private Integer permissionId;
}